/*
 * Copyright (c) 2015 www.smarthome.com All rights reserved. 本软件源代码版权归----所有,未经许可不得任意复制与传播.
 */
package com.smarthome.base.dao.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.smarthome.base.dao.ShEquipmentDdnsDao;
import com.smarthome.base.dao.base.BaseDaoImpl;
import com.smarthome.domain.bean.ShEquipmentDdns;

/**
 * ddns dao
 * 
 * @author shazhichao
 *
 */
@Repository("shEquipmentDdnsDao")
public class ShEquipmentDdnsDaoImpl extends BaseDaoImpl<ShEquipmentDdns, Long> implements ShEquipmentDdnsDao {

    private final static String NAMESPACE = "com.smarthome.base.dao.ShEquipmentDdnsDao.";

    // 返回本DAO命名空间,并添加statement
    public String getNameSpace(String statement) {
        return NAMESPACE + statement;
    }

    @Override
    public List<ShEquipmentDdns> selectList(ShEquipmentDdns shEquipmentDdns) {
        return this.selectList(getNameSpace("selectList"), shEquipmentDdns);
    }

    @Override
    public ShEquipmentDdns selectById(ShEquipmentDdns talk) {
        List<ShEquipmentDdns> talks = this.selectList(getNameSpace("selectById"), talk);
        if (talks != null && talks.size() > 0) {
            return talks.get(0);
        }
        return null;
    }



}